<?php

class Application_Model_DbTable_Pricemark extends Zend_Db_Table_Abstract
{

    protected $_name = 'txy_price_mark';
	
    public function addNew($data){
    	$this->insert($data);
    }
    
    public function getPriceByNumiid($numiid){
    	$res=$this->fetchRow('numiid ='.$numiid);
    	if(null!=$res){
    	    return $res->toArray();
    	}
    }
    
    public function updateByNumiid($data,$numiid){
    	$this->update($data,'numiid ='.$numiid);
    }

}

